// 所有关于课程列表模块接口
import request from "../utils/request";

// 获取课程列表接口
export function _getCourseList(data) {
  return request("/VueHandler/CourseHandler?action=show", "post", data);
}

//课程上架下架
export function _upAndDown(ID) {
  return request("/VueHandler/CourseHandler?action=state", "post", {
    ID: ID,
  });
}
// 删除课程

export function _delCourse(_id) {
  return request("/VueHandler/CourseHandler?action=delete", "post", {
    _id: _id,
  });
}
//置顶课程
export function _isTop(ID) {
  return request("/VueHandler/CourseHandler?action=top", "post", {
    ID: ID,
  });
}
